﻿using System;
using System.Collections.Generic;
using System.Text;

using System.Net;

namespace FinancialAnalytic.BusinessLogic
{
    public abstract class AbstractDataDownloader
    {
        protected string abshistorydata = string.Empty;

        public string HistoryData(string urlTemplate)
        {
            WebClient wc = new WebClient();
            try
            {
                this.abshistorydata = wc.DownloadString(urlTemplate);
            }
            catch (WebException wex)
            {
                //  throw wex;
            }
            finally
            {
                wc.Dispose();
            }

            return this.abshistorydata;

        }



    }
}
